import Layout from '@/layout'

const menu = [
  {
    path: 'sysMenu/:parentId?',
    component: Layout,
    redirect: 'noRedirect',
    meta: { icon: 'tree' },
    hidden: false, // TODO 发布时将其改为true
    children: [
      {
        path: '',
        component: () => import('@/views/sysMenu'),
        name: 'menu',
        meta: { title: '菜单管理' }
      }
    ]
  },
  {
    path: '/permission',
    component: Layout,
    redirect: 'noRedirect',
    meta: { icon: 'el-icon-s-tools' },
    children: [
      {
        path: '',
        component: () => import('@/views/permission'),
        name: 'permission',
        meta: { title: '权限管理' }
      }
    ]
  },
  {
    path: '/staff',
    component: Layout,
    redirect: 'noRedirect',
    meta: { icon: 'staff' },
    children: [
      {
        path: '',
        component: () => import('@/views/staff'),
        name: 'staff',
        meta: { title: '员工管理' }
      }

    ]
  }
]

export default menu
